<?php
class CartViewDetailcart extends View{
	var $siteObject;
	
	function __construct(){
		global $siteDocument;
		$this->siteObject	= $siteDocument;
	}
	
	function display(){
		if ($this->detailcart){
			$this->setLayout('default');
			$this->includeScriptActionCart();
		}
		else 
			$this->setLayout('emptyCart');
	}
	
	function includeScriptActionCart(){
		$this->siteObject->addScript('libraries/js/mootools/mootools.js');
		$this->siteObject->addScript('libraries/js/mootools/updateNumberProduct.js');
		$this->siteObject->addScript('libraries/js/mootools/deleteIDSessionCart.js');
	}
	
}